export default function directiveUnit(app) {
    app.directive("unit",{
        created(el,bindings) {
            const contentText  = el.textContent
            let value = bindings.value
            if (!value) {
                value = "¥"
            }
            el.textContent = value + contentText
        }
    })
} 